package com.czx.core.constant;

/**
 * rabbitmq的broker名称
 * @author dlw
 */
public interface MQConstant {

    /**
     * 交换机
     */
    String ORDER_DELAY_EXCHANGE = "stock-delay-exchange";
    String ORDER_EVENT_EXCHANGE = "order-event-exchange";
    String MESSAGE_RECORD_EXCHANGE = "message-record-exchange";

    /**
     * 队列
     */
    String CHAT_SEND_MSG_QUEUE = "chat.send.msg.queue";
    String SCAN_MSG_QUEUE = "scan.msg.queue";
    String WEBSOCKET_PUSH_MSG_QUEUE = "websocket.push.msg.queue";
    String ORDER_RELEASE_ORDER_QUEUE = "order.release.order.queue";
    String STOCK_RELEASE_STOCK_QUEUE = "stock.release.stock.queue";
    String ORDER_SEC_KILL_ORDER_QUEUE = "order.secKill.order.queue";
    String STOCK_COMMON_QUEUE = "stock.common.queue";
    String STOCK_DELAY_QUEUE = "stock.delay.queue";
    String MESSAGE_RECORD_QUEUE = "message.record.queue";

    /**
     * routingKey
     */
    String ORDER_RELEASE_KEY = "order.release.*";
    String ORDER_RELEASE_OTHER_KEY = "order.release.other.#";
    String CHAT_SEND_MSG = "chat.send.msg";
    String SCAN_MSG = "scan.msg";
    String WEBSOCKET_PUSH_MSG = "websocket.push.msg";
    String ORDER_SEC_KILL_ORDER = "order.secKill.order";
    String MESSAGE_RECORD_KEY = "message.record.msg";

}
